package com.wfs.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class ModelDataListener extends AnalysisEventListener<UserDO> {
    private List<UserDO> list=new ArrayList<>();
    @Override
    public void invoke(UserDO userDO, AnalysisContext analysisContext) {
        list.add(userDO);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("结束");
    }
    public List<UserDO> getData() {
        return list;
    }
}
